﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Weblications.Sango.Constant
{
    class BattleResultCollection
    {
        // 未知状态
        public const int UNKNOWN = 1;
        // 攻击方胜利
        public const int ATTACKWIN = 2;
        // 防守方胜利
        public const int DEFENSEWIN = 3;
        // 平局
        public const int DRAW = 4;
        // 无上阵武将
        public const int ATTACK_NOMEMBER = 5;

        internal static string getComment(int code)
        {
            switch (code)
            {
                case ATTACKWIN:
                    return "攻击方胜利";
                case DEFENSEWIN:
                    return "防守方胜利";
                case DRAW:
                    return "平局";
                case ATTACK_NOMEMBER:
                    return "无上阵武将";

                case UNKNOWN:
                default:
                    return "未知状态";
            }
        }
    }
}
